package zydhsms

import (
	"go-shop-api/pkg/e"
	"go-shop-api/pkg/serializer"
)

// CheckSms 检查短信是否过期
func CheckSms(phone, code string) *serializer.Response {
	//从redis短信
	//redis.get(phone)
	//对比 加密的短信验证码  if redis.get(phone) = encrypt(code)
	//不存在
	//return false,"短信验证码错误"
	//存在
	//判断短信是否过期时间

	return serializer.NewResponse(e.Success, e.TipsOk, e.TipsSuccessCheckSmsCode, nil)
}
